1 include /etc/nginx/org/heureux-cyclage/burettes/name.conf;
3 client_body_buffer_size 1024k;
4 client_max_body_size 10m;
7 proxy_buffer_size 128k;
15 proxy_next_upstream error timeout
20 # NOTE: force timeouts if the backend dies.
21 proxy_pass http://openerp7_burette;
23 # NOTE: by default, do not forward anything
24 proxy_read_timeout 500;
25 proxy_set_header Host $host;
26 proxy_set_header OpenERP-DB-Filter $burette_dbfilter;
27 # TODO: utiliser un certificat utilisateurice X.509
28 # pour initialiser cette variable.
29 proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
30 proxy_set_header X-Forwarded-Proto https;
31 # NOTE: let the OpenERP web service know that we're using HTTPS,
32 # otherwise it will generate URL using http:// and not https://
33 proxy_set_header X-Real-IP $remote_addr;
36 location ~* ^/web/static/ {
37 # NOTE: cache some static data in memory for 60mins;
38 # under heavy load this should relieve stress on the OpenERP web interface a bit.
41 proxy_cache_valid 200 60m;
42 proxy_pass http://openerp7_burette;